package com.wfms.service;

import com.config.DefaultFeignConfig;
import com.wfms.bean.User;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by Administrator on 2017/12/24.
 */
@FeignClient(name = "default",url = "http://localhost:9090",configuration = DefaultFeignConfig.class)
public interface FeignDefaultHttp {

    @RequestLine("GET /eureka/user/{id}")
    public User findById(@Param("id") int id);


}
